package lab4;

import java.util.Random;

public class MatrixGenerator {

	private int m;
	private int n;
	Random ran = new Random();
	
	public MatrixGenerator(int m, int n) {
		super();
		this.m = m;
		this.n = n;
	}
	
	public double[][] generate(int m , int n){
		double[][] matrix = new double[m][n];
		for(int i = 0 ; i < matrix.length ;i++) {
			for(int j = 0 ; j < matrix[i].length ; j++) {
				matrix[i][j] = ran.nextDouble() + ran.nextInt(100);//���������
//				System.out.print(matrix[i][j] + " ");
			}
//			System.out.println();
		}
	
		return matrix;
	}
}
